#ifndef SETTINGS_H
#define SETTINGS_H

#include <QWidget>
#include "QListWidgetItem"
#include <frmkeyboard.h>
#include "usermanager.h"
#include "QMessageBox"
#include "permission.h"
#include "itemmanager.h"
#include "QNetworkConfigurationManager"

namespace Ui {
class Settings;
}

class Settings : public QWidget
{
    Q_OBJECT

public:
    explicit Settings(QWidget *parent = nullptr);
    ~Settings();

    frmKeyBoard *keyboard = new frmKeyBoard();
    bool isKeyBoardShow;
    //更新用户列表
    void resetListWidget();
    //更新药品列表
    void resetListWidget_2();
    //hide keyboard by keyboard's close button
    void hidekeyboard();


signals:
    void display(int number);
    //发送WiFi已连接信号
    void wifi(bool number);

private slots:
    void on_confirmdelete_clicked();

    void on_confirm_clicked();

    void on_adduser_clicked();

    void on_keyboard_clicked();

    void on_home_clicked();

    void on_selectmethod_clicked();

    void on_methoddevelop_clicked();


    void on_confirmdelete_2_clicked();

    void on_delete_2_clicked();

private:
    Ui::Settings *ui;

    void initStyleSheet();
};

#endif // SETTINGS_H
